import { Injectable } from '@angular/core';

import { Observable } from 'rxjs';

import { HttpRequestService } from '../../core/services/http-request.service';

@Injectable()
export class UserLoadStateService {
    constructor(private httpRequestService: HttpRequestService) { }

    loadProvince(): Observable<any[]> {
        return this.httpRequestService.getWithoutBaseUrl<any[]>('assets/user-demo-data/province.json');
    }

    loadBeijingProvince(): Observable<any[]> {
        return this.httpRequestService.getWithoutBaseUrl<any[]>('assets/user-demo-data/beijing-province.json');
    }

    loadShanghaiProvince(): Observable<any[]> {
        return this.httpRequestService.getWithoutBaseUrl<any[]>('assets/user-demo-data/shanghai-province.json');
    }

    loadNationality(): Observable<any[]> {
        return this.httpRequestService.getWithoutBaseUrl<any[]>('assets/user-demo-data/nationality.json');
    }

    loadStatus(): Observable<any[]> {
        return this.httpRequestService.getWithoutBaseUrl<any[]>('assets/user-demo-data/status.json');
    }
}